home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Virtual User 1.0 / Virtual User / MPW Scripts / Cpp_vu < prev    next >
Text File  |  1991-01-25  |  638b  |  36 lines

  1. #
  2. #    File:        cpp_vu
  3. #
  4. #    Contains:    This script preprocesses VU script files using C preprocessor 
  5. #                redirecting the output to files whose name is same as the corresponding
  6. #                script file, with an additional extension '.cpp'
  7. #
  8. #
  9. #    Written by:    P Nagarajan
  10. #
  11. #    Copyright:    © 1989 by Apple Computer, Inc., all rights reserved.
  12. #
  13. #    Change History:
  14. #
  15. #         6/5/89       naga        creation
  16. #
  17. #    To Do:
  18. #
  19.  
  20. set exit 0
  21. set file "{1}"
  22. Loop 
  23.     If "`Exists -f "{file}"`" != ""
  24.         C -e "{file}" > "{file}.cpp"
  25.         echo "{file}.cpp"
  26.     Else
  27.         echo "{file} does not exist!" >> "{Worksheet}"
  28.  
  29.         exit 1
  30.     End #If file exists
  31.     Shift
  32.     Break If {#} == 0
  33.     Set file "{1}"
  34. End
  35.  
  36.